/*
 * Copyright (C) 2015 备胎金服
 * 未经授权允许不得进行拷贝和修改
 *   http://www.btjf.com/
 */
package com.zhangman.framework;

import java.util.List;

/**
 * Created by zhangman on 2016/11/1 09:57.
 * Email: zhangman523@126.com
 */
public interface Input {
  public static class TouchEvent {
    public static final int TOUCH_DOWN = 0;
    public static final int TOUCH_UP = 1;
    public static final int TOUCH_DRAGGED = 2;
    public static final int TOUCH_HOLD = 3;

    public int type;
    public int x, y;
    public int pointer;
  }

  public boolean isTouchDown(int pointer);

  public int getTouchX(int pointer);

  public int getTouchY(int pointer);

  public List<TouchEvent> getTouchEvents();
}
